home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / chown.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. CHOWN(3)            MINTLIB LIBRARY FUNCTIONS            CHOWN(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        chown - change owner and group of a file
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.  
  13.        int chown(const char *path, int uid, int gid);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        path  points  to  a  path  naming a file. The owner ID and
  17.        group ID of the file are set to the  numeric  values  con-
  18.        tained in uid and gid respectively.
  19.  
  20.        Only a process with effective uid 0 or whose effective uid
  21.        matches the user ownership of the file may make this call.
  22.        In  the  latter  case, the new uid must match the old one,
  23.        and the calling process must also be a member of the group
  24.        specified by gid.
  25.  
  26. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  27.         0  on success -1 on failure; errno is set to indicate the
  28.        error
  29.  
  30. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  31.        c✓ch✓hm✓mo✓od✓d(✓(3✓3)✓),✓, F✓Fc✓ch✓ho✓ow✓wn✓n(✓(2✓2)✓)
  32.  
  33. N✓NO✓OT✓TE✓ES✓S
  34.        When MiNT is not active, this routine is bogus.
  35.  
  36.        MS-DOS (TOS) file systems do not  understand  file  owner-
  37.        ship.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.